package mythread.demo001;

public class MyThread12Test_stop2 {
    public static void main(String[] args) {
        //1、退出标志  run后终止
        //2、stop（suspend、resume）过期
        //3、interrupt(只是打了一个标记)  interrupted-线程是否中断  isInterrupted-当前线程是否中断


        Thread.currentThread().interrupt();
        System.out.println("is1-" + Thread.interrupted());//第一次调用清除中断状态
        System.out.println("is2-" + Thread.interrupted());
        System.out.println("end");

    }
}
